﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmployeeForm.aspx.cs" Inherits="DataGrid_Binding_Northwind.EmployeeForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:GridView runat="server" ID="gridEmployees" DataKeyNames="EmployeeID" AutoGenerateColumns="false"
        AllowPaging="true">
        <Columns>
            <%--<asp:HyperLinkField HeaderText="detailview link" DataNavigateUrlFields="EmployeeID" Text="Details..."
                DataNavigateUrlFormatString="~\DetailView.aspx?EmpID={0}" />    --%>
                            
            <asp:TemplateField HeaderText="Full Name">
            <ItemTemplate>
                <h1>                
                <a href='<%#"DetailView.aspx?EmpID="+Eval("EmployeeID")%>'><%#string.Format("{0}-{1}",Eval("FirstName"),Eval("LastName"))%></a>
                </h1>
            </ItemTemplate>
            </asp:TemplateField>
            
             
        </Columns>  
              
    </asp:GridView>
    </form>
</body>
</html>
